package com.example.guiguihomemedical.service.impl;

import com.example.guiguihomemedical.entity.Servicesigning;
import com.example.guiguihomemedical.mapper.ServicesigningMapper;
import com.example.guiguihomemedical.service.ServicesigningService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ServicesigningServiceImpl implements ServicesigningService {
    @Autowired
    private ServicesigningMapper servicesigningMapper;

    @Override
    public void delete(String idcard) {
        servicesigningMapper.delete(idcard);
    }

    @Override
    public void add(Servicesigning servicesigning) {
        servicesigningMapper.insert(servicesigning);
    }

    @Override
    public Servicesigning getByIdcard(String idcard) {
        return servicesigningMapper.getByIdcard(idcard);
    }

    @Override
    public List<Servicesigning> getAll() {
        return servicesigningMapper.getAll();
    }
}
